<?php

/*

Editing Shop (edit_shop.pro.php)

*/
ob_start();
include "global.inc.php";

$find_shop = fetch("SELECT id FROM usershops2 WHERE owner = '$userid' AND game = '$game'");
if (!$find_shop[id])
{
	die(header(error("makeshop.php?game=$game","You do not have a shop yet.")));
}

$shop_name = smilies(badwords(strip_tags($shop_name,"<b><i>")));
$shop_desc = smilies(badwords(strip_tags($shop_desc,"<b><i><u><a><font><p><br><center><img><table><tr><td><body><background>")));

mysql_query("UPDATE usershops2 SET shop_name = '$shop_name' WHERE owner = '$userid' AND game = '$game'");
mysql_query("UPDATE usershops2 SET shop_desc = '$shop_desc' WHERE owner = '$userid' AND game = '$game'");

die(header(error("edit_shop.php?game=$game","Your shop has been edited!")));

?>